package cn.xinfei.xdecision.common.model.datax.enums;


import lombok.Getter;

public enum VirtualDataSourceEnum implements ICodeEnum{

    JAVA_VAR("J", "java变量", VirtualDataSourcType.ABSTRACT_INTERFACE),
    PYTHON_VAR("P", "python变量", VirtualDataSourcType.ABSTRACT_INTERFACE),
    CREDIT_VAR("C", "征信变量", VirtualDataSourcType.ABSTRACT_INTERFACE),
    MODEL_VAR("M", "模型变量", VirtualDataSourcType.ABSTRACT_INTERFACE),
    STANDARD_VAR("S", "标准接口变量", VirtualDataSourcType.REAL_INTERFACE);

    VirtualDataSourceEnum(String code, String desc, VirtualDataSourcType dataSourcType) {
        this.code = code;
        this.desc = desc;
        this.dataSourcType = dataSourcType;
    }

    @Getter
    private String code;
    private String desc;
    @Getter
    private VirtualDataSourcType dataSourcType;

    enum VirtualDataSourcType {
        ABSTRACT_INTERFACE("A","抽象接口数据源"),
        REAL_INTERFACE("R","标准接口数据源");
        @Getter
        public String code;
        @Getter
        public String desc;
        VirtualDataSourcType(String code, String desc) {
            this.code = code;
            this.desc = desc;
        }
    }

}
